package com.example.intermingle.mapper;
import com.example.intermingle.vo.RoleResources;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @Entity com.example.intermingle.dao.RoleResources
 */
public interface RoleResourcesMapper {
    //批量插入资源
    int insertBatch(@Param("roleResourcesCollection") Collection<RoleResources> roleResourcesCollection);
    //删除资源数据
    int delByRoleResourcesId(@Param("roleResourcesId") Integer roleResourcesId);
    //格局角色id和资源id查询
    RoleResources selectOneByRoleIdAndResourcesId(@Param("roleId") Integer roleId, @Param("resourcesId") Integer resourcesId);




}




